import React, { useContext } from 'react';
import context from './context';
function Child() {
  const childContextValue = useContext(context);
  return <h1>子组件接收了{childContextValue}次</h1>;
}

export default Child;
